﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="list.aspx.cs" Inherits="www.pages.project.list" %>

<%@ Register TagPrefix="webdiyer" Namespace="Wuqi.Webdiyer" Assembly="AspNetPager" %>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <link href="../../css/lanai-ui.min.css" rel="stylesheet" />
    <link href="../../css/pager.css" rel="stylesheet" />
</head>
<body>
    <section class="content no-pad-top">
        <form id="form1" runat="server">
            <div class="box box-widget no-shadow no-radius-childs">
                <div class="box-body">
                    <div class="form-group">
                        <div class="input-group">
                            <input id="txtProjectName" runat="server" type="text" class="form-control" placeholder="请输入项目名称" />
                            <div class="input-group-addon">
                                <asp:LinkButton ID="btnSearch" runat="server" OnClick="btnSearch_Click"><i class="fa fa-search"></i></asp:LinkButton>
                            </div>
                        </div>
                    </div>
                    <asp:Repeater ID="list_data" runat="server">
                        <HeaderTemplate>
                            <table class="table table-bordered table-striped table-hover text-center no-margin-bottom">
                                <thead>
                                    <tr>
                                        <th style="width: 60px">序号</th>
                                        <th style="width: 180px">文档名称</th>
                                        <th>描述</th>
                                        <th style="width: 60px">操作</th>
                                    </tr>
                                </thead>
                                <tbody>
                        </HeaderTemplate>
                        <ItemTemplate>
                            <tr>
                                <td><%#Container.ItemIndex+1 %></td>
                                <td><%#Eval("project_name") %></td>
                                <td><%#Core.Helper.StringUtil.subString(Eval("project_comment").ToString(),15,true) %></td>
                                <td>
                                    <a class="btn btn-default btn-sm" href="#" onclick="parent.openProject('<%#Eval("project_id") %>')"><i class="fa fa-folder-open"></i>打开</a>
                                </td>
                            </tr>
                        </ItemTemplate>
                        <FooterTemplate>
                            </tbody>
                    </table>
                        </FooterTemplate>
                    </asp:Repeater>
                    <%if (list_data.Items.Count <= 0)
                        { %>
                    <table class="table table-bordered table-striped table-hover text-center no-margin-bottom">
                        <thead>
                            <tr>
                                <th style="width: 60px">序号</th>
                                <th style="width: 180px">文档名称</th>
                                <th>描述</th>
                                <th style="width: 60px">操作</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr>
                                <td colspan="4" style="text-align: center">未查询到任何数据</td>
                            </tr>
                        </tbody>
                    </table>
                    <%} %>
                    <table class="table_pager table">
                        <tr>
                            <td class="pager_area">
                                <webdiyer:AspNetPager ID="Pager" runat="server" NumericButtonType="Text" BorderStyle="None" CurrentPageButtonClass="cpb" PageSize="12"
                                    CustomInfoSectionWidth="60%" ShowBoxThreshold="5" HorizontalAlign="Right" AlwaysShow="false" OnPageChanging="Pager_PageChanging" PagingButtonSpacing="0px" FirstPageText="首页" LastPageText="尾页" NextPageText="下一页" PrevPageText="上一页">
                                </webdiyer:AspNetPager>
                            </td>
                        </tr>
                    </table>
                </div>
            </div>
        </form>
    </section>
    <script src="../../js/jquery.min.js"></script>
    <script src="../../js/lanai-ui.min.js"></script>
</body>
</html>
